package cn.hh.product.domain;

import cn.hh.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BasicDomain{
    private String name;
    private String resources;
    private String saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    private Date onsaletime;
    private Integer state;
    private String costprice;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    private Date createtime;
    private Long salecount;
    private ProductDetail productDetail;
}
